package logic

import (
	"context"
	"wx/models/mysql"

	"wx/wxrpc/internal/svc"
	"wx/wxrpc/wxrpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type PyqDelLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewPyqDelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PyqDelLogic {
	return &PyqDelLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *PyqDelLogic) PyqDel(in *wxrpc.PyqDelRequest) (*wxrpc.PyqDelResponse, error) {
	// todo: add your logic here and delete this line
	var pyq mysql.Pyq
	mysql.DB.Debug().Delete(&pyq)

	return &wxrpc.PyqDelResponse{}, nil
}
